from time import sleep

import pytest
from selenium import webdriver
import os
from selenium.webdriver.common.by import By
@pytest.fixture(scope='function')
def logindriver():
    driver = webdriver.Edge()
    driver.maximize_window()
    driver.implicitly_wait(6)
    driver.get(os.getenv('baseurl'))
    sleep(4)

    butele = driver.find_element(By.CSS_SELECTOR, "#app > div > form > button")
    butele.click()
    sleep(5)
    yield driver
    driver.quit()


